package entidades;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import entidades.enums.Dan;

@Entity
@Table(name = "entrenador")
public class Entrenador extends Persona {
	@Enumerated(EnumType.STRING)
	private Dan dan;

	public Dan getDan() {
		return dan;
	}

	public void setDan(Dan dan) {
		this.dan = dan;
	}
	
	@Override
	public String toString(){
		return String.valueOf(getId()) + " " + getApellidos() + " " + getNombres();
		
	}
}
